package com.gagakuai.bpm.common.constants;

/*
 * @program: bpm_server
 * @description: bpm元数据定义常量池
 * @author: houhong
 * @create: 2022-05-07 16:23
 */
public class BpmMetaConstants {

    /*
     * 活跃中
     */
    public static final String PROCE_IINSTANCE_ACTIVE = "ACTIVE";

    /*
     * 动态设置bpm完成条件key
     */
    public static final String BPM_COMPLETED_CONDITION_KEY = "dynamic_completed_key";

    /*
     * bpm办理方式存储redis的key
     */
    public static final String BPM_COMPLETED_TYPE_GLOBAL = "bpmCompleted-type";

    /*
     * bpm加签人redis的key
     */
    public static final String BPM_ADD_INSTANCE_ASSIGNE_KEY = "bpmAddInstanceType";

    /*
     * 任务创建
     */
    public static final String TASK_TYPE_CREATE = "create";

    /*
     * 任务完成
     */
    public static final String TASK_TYPE_COMPLETEED = "complete";

    /*
     * 任务删除
     */
    public static final String TASK_TYPE_DELTED = "delete";


    /*
     * redis文件分隔符
     */
    public static final String REDIS_FILE_KEY_SEPTOR = ":";


    /*
     * redis-line分隔符
     */
    public static final String REDIS_LINE_KEY_SEPTOR = "^";

    /*
     * redis条件分割符
     */
    public static final String REDIS_CONDITION_KEY_SEPTOR = "&&";

    /*
     * 等于符号
     */
    public static final String REDIS_EQQUALS_KEY_SEPTOR = "==";

    /*
     * 总共的任务
     *
     */
    public static final String NR_OF_INSTANCES_KEY = "nrOfInstances";


    /*
     * 总共完成的任务
     */
    public static final String NR_OF_CONPLETED_INSTANCES_KEY = "nrOfCompletedInstances";


    /*
     * 办理人
     */
    public static final String ADD_INSTANCE_ASSIGNE = "assigne";

    /*
     * 办理类别
     */
    public static final String BPM_COMPELTED_TTPE = "completedType";

    /*
     * 当前办理情况
     */
    public static final String BPM_CUR_COMPELTED_TYPE_KEY = "curCompleted";

    /*
     * 当前原任务人完成情况
     */
    public static final String BPM_CUR_ORIGIN__KEY = "curOriginTaskOwnerCompletedStr";

    /*
     * 当前加签人完成情况
     */
    public static final String BPM_CUR_ADDINSTANCE_COMPELTED_TYPE_KEY = "curAddInstancesCompletedStr";

    /*
     * 上个节点拥有者
     */
    public static final String BPM_CUR_LAST_TASK_OWNER_KEY = "lastTaskOwnerStr";

    /*
     * 本次节点拥有者(委托后人员)
     */
    public static final String BPM_CUR_CUR_TASK_OWNER_KEY = "originTaskOwnersStr";


    /*
     * 当前节点定义key
     */
    public static final String BPM_CUR_TASK_DEFKEY = "taskDefKey";

    /*
    *
    * 上次节点定义key
    */
    public static final String BPM_LAST_TASK_DEFKEY = "lastTaskDefKey";

    /*
     * 本次节点拥有者(非委托)
     */
    public static final String BPM_CUR_CUR_TASK_OWNER_NOT_DELEAGTE_KEY = "originTaskOwnersStrNotDelegate";


    /*
     *  工作流是否活跃
     *
     */
    public static final String PROCESS_ACTIVE = "ACTIVE";
    /*
     * 任务拥有着
     */
    public static final String BPM_RUTASK_OWENER_KEY = "owener";
    /*
     * 已加签
     */
    public static final Integer BPM_TASK_IS_ADD_INSTANCE = 1;
    /*
     * 未加签
     */
    public static final Integer BPM_TASK_NON_ADD_INSTANCE = 0;

    /*
     * 加签人
     */
    public static final String ADD_INSTANCE_LIST = "assigneeList";


    /*
     * 流程定义KEY
     */
    public static final String TASK_DEF_KEY = "taskDefKey";


    /*
     * 数据同步类型 -- create,update,delete
     */
    public static final String SYNC_TYPE_CREATE = "creatte";
    /*
     * 数据同步类型 -- create,update,delete
     */
    public static final String SYNC_TYPE_UPDATE = "update";

    /*
     * 数据同步类型 -- create,update,delete
     */
    public static final String SYNC_TYPE_DELETE = "delete";

    /*
     * 默认的到期时间
     */
    public static final String DEFAULTASK_DUE_DATE = "due_date";

    /*
     * bpm 任务原始拥有者
     */
    public static final String TASK_ORIGIN_OWNER = "bpm_task_ower:";


    /*
     * 传递死信
     */
    public static final String BPM_DEAD_MSG_TYPE = "bpm_dead_msg";

    /*
     * 传递死信第一次做重试，
     */
    public static final String BPM_DEAD_MSG_SYSTEM_RETRY = "bpm_dead_msg_system_retry";

    /*
     * 本地死信队列，
     */
    public static final String DEAD_LOCAL_QUEUE_NAME = "localDeadQueue";
}
